import { getRequest, postRequest, putRequest, deleteRequest } from '@/utils/request';
/**
 * 配棉方案
 * */
// 创建
export const cottonPpfCottonBlendingCreate = (data) => postRequest('/cotton/ppf-cotton-blending/create', data);

// 更新
export const cottonPpfCottonBlendingUpdate = (data) => putRequest('/cotton/ppf-cotton-blending/update', data);

// 删除
export const cottonPpfCottonBlendingDelete = (params) => deleteRequest('/cotton/ppf-cotton-blending/delete', params);

// 获得
export const cottonPpfCottonBlendingGet = (params) => getRequest('/cotton/ppf-cotton-blending/get', params);

// 获得分页
export const cottonPpfCottonBlendingPage = (params) => getRequest('/cotton/ppf-cotton-blending/page', params);

// 导出 Excel
export const cottonPpfCottonBlendingExportExcel = (params) => getRequest('/cotton/ppf-cotton-blending/export-excel', params);

// 提交
export const cottonPpfCottonBlendingSubmitAudit = (params) => postRequest('/cotton/ppf-cotton-blending/submit-audit', params);
// 撤销提交
export const cottonPpfCottonBlendingClearSubmitAudit = (params) => postRequest('/cotton/ppf-cotton-blending/clear-submit-audit', params);
// 审核
export const cottonPpfCottonBlendingAudit = (params) => postRequest('/cotton/ppf-cotton-blending/audit', params);
// 撤销审核
export const cottonPpfCottonBlendingClearAudit = (params) => postRequest('/cotton/ppf-cotton-blending/clear-audit', params);
// 保存并审核
export const cottonPpfCottonBlendingCreateAudit = (params) => postRequest('/cotton/ppf-cotton-blending/create-audit', params);
// 更新并审核
export const cottonPpfCottonBlendingUpdateAudit = (params) => putRequest('/cotton/ppf-cotton-blending/update-audit', params);
// 关闭
export const cottonPpfCottonBlendingClose = (params) => postRequest('/cotton/ppf-cotton-blending/close', params);
// 撤销关闭
export const cottonPpfCottonBlendingClearClose = (params) => postRequest('/cotton/ppf-cotton-blending/clear-close', params);

// 获取版本号
export const cottonPpfCottonBlendingGetVersion = (params) => getRequest('/cotton/ppf-cotton-blending/get-version', params);

